package com.omo.dee;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@Configurable
@EnableScheduling
@ComponentScan(basePackages = {
        "com.omo.dee", // 主应用包
        "com.omo.infrastructure.persistent.dao", // DAO接口所在包
        "com.omo.infrastructure.persistent.repository", // repository接口所在包
        "com.omo.api", // 之前的IMachineService所在包
        "com.omo.dee.config", // 配置类所在包
        "com.omo.trigger", // 控制器所在包
        "com.omo.domain", // 新增：领域服务包
        "com.omo.infrastructure.excel" // 新增：Excel服务包，包含AbstractExcelIExport
})
@MapperScan("com.omo.infrastructure.persistent.dao") // 新增：MyBatis Mapper扫描
public class Application {

    public static void main(String[] args){
        SpringApplication.run(Application.class);
    }

}